HipInputMap

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Aliases

AxisContext
alias AxisContext = IHipInputMap.AxisContext
Undocumented in source.
Context
alias Context = IHipInputMap.Context
Undocumented in source.

Functions

getAxis
Vector3 getAxis(string directionalName)
Undocumented in source. Be warned that the author may not have intended to support it.
isActionJustPressed
float isActionJustPressed(string actionName)
Undocumented in source. Be warned that the author may not have intended to support it.
isActionJustReleased
float isActionJustReleased(string actionName)
Undocumented in source. Be warned that the author may not have intended to support it.
isActionPressed
float isActionPressed(string actionName)
Undocumented in source. Be warned that the author may not have intended to support it.
isReady
bool isReady()
Undocumented in source. Be warned that the author may not have intended to support it.
onDispose
void onDispose()
Undocumented in source. Be warned that the author may not have intended to support it.
onFinishLoading
void onFinishLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
registerInputAction
void registerInputAction(string actionName, Context ctx)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

parseInputMap
HipInputMap parseInputMap(ubyte[] file, string fileName, ubyte id)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

directionalsMapping
AxisContext[][string] directionalsMapping;
Undocumented in source.
id
ubyte id;
Undocumented in source.
inputMapping
Context[string] inputMapping;
Undocumented in source.

Inherited Members

From HipAsset

_name
string _name;

Use it to insert into an asset pool, alias

_assetID
uint _assetID;

Currently not in use

_typeID
uint _typeID;

Usage inside asset manager

loadTime
float loadTime;

How much time it took to load, in millis

name
string name()
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name(string newName)
Undocumented in source. Be warned that the author may not have intended to support it.
assetID
uint assetID()
Undocumented in source. Be warned that the author may not have intended to support it.
typeID
uint typeID()
Undocumented in source. Be warned that the author may not have intended to support it.
onFinishLoading
void onFinishLoading()

Action for when the asset finishes loading Proabably be executed on the main thread

isReady
bool isReady()
Undocumented in source.
onDispose
void onDispose()

Use it to clear the engine.

startLoading
void startLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
finishLoading
void finishLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose()

Currently, no AssetID recycle is in mind. It will only invalidate the asset for disposing it on an appropriate time

From IHipInputMap

Context
struct Context
Undocumented in source.
AxisContext
struct AxisContext
Undocumented in source.
registerInputAction
void registerInputAction(string actionName, Context ctx)
Undocumented in source.
isActionPressed
float isActionPressed(string actionName)
Undocumented in source.
isActionJustPressed
float isActionJustPressed(string actionName)
Undocumented in source.
isActionJustReleased
float isActionJustReleased(string actionName)
Undocumented in source.
getAxis
Vector3 getAxis(string directionalName)

Gets a Vector3 from a mapped directional.

Meta